<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>08 词法作用域</title>
	</head>
	<body>
		<script type="text/javascript">
			
			function foo(a){
				var b = a * 2;
				function bar(c){
					console.log(a,b,c);// 2 4 12
				}
				bar( b * 3);
			}
			foo(2);

		</script>
	</body>
</html>
